<?php
include_once("include/public.php");
$menu = 1;
$smarty->assign("menu",$menu);
$newstitle = $db->query_row("select id,title from wnews order by active desc limit 5",MYSQL_ASSOC);
$smarty->assign("newstitle",$newstitle);
$banner = $db->query_row("select title,brief_img,url from setting where name='index_banner' order by idx",MYSQL_ASSOC);
$one[0] = $db->get_one("select brief_img from tcase where tid=1 order by time desc limit 1",MYSQL_ASSOC);
$one[1] = $db->get_one("select brief_img from tcase where tid=2 order by time desc limit 1",MYSQL_ASSOC);
$one[2] = $db->get_one("select brief_img from tcase where tid=3 order by time desc limit 1",MYSQL_ASSOC);
$one[3] = $db->get_one("select brief_img from tcase where tid=4 order by time desc limit 1",MYSQL_ASSOC);
$smarty->assign("banner",$banner);
$smarty->assign("one",$one);
$smarty->display('index.html');
?>